package com.normalsys.live.controller;

import com.normalsys.live.service.MsgService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created with IntelliJ IDEA.
 * User: 刘天宇
 * Date: 2018/8/23
 * Time: 20:12
 * Description:
 */
@RestController
@RequestMapping("/msg")
public class MsgController {

    @Autowired
    private MsgService msgService;

//    @Scheduled(cron="0 0/30 0 * * ? ")
    public void push() {
        msgService.push();
    }
}
